package com.aos.erp.schools.mapper.student;

import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.schools.model.student.StudentExam;
import com.aos.erp.schools.model.student.ro.exam.StudentYueKaoRo;
import com.aos.erp.schools.model.student.ro.exam.UpdateYueKaoRo;
import com.aos.erp.schools.model.student.ro.student.SelectByStateRo;
import com.aos.erp.schools.model.student.vo.eaxm.ShowUpdateExamVo;
import com.aos.erp.schools.model.student.vo.eaxm.StudentYueKaoExamVo;
import com.aos.erp.schools.model.student.vo.student.StudentEaxmVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学员预约考试表 Mapper 接口
 * </p>
 *
 * @author chb
 * @since 2018-10-31
 */
@Mapper
public interface StudentExamMapper extends SuperMapper<StudentExam> {
        //根据 科目 查找对应的 学员 分配教练
        List<StudentEaxmVo> queryBySubject(IPage<StudentEaxmVo> pageBean, @Param("ro") SelectByStateRo ro);
        //<!--得到达到约考条件的学员-->
        List<StudentYueKaoExamVo> queryStudentYueKaoExam(IPage<StudentYueKaoExamVo> pageBean, @Param("ro") StudentYueKaoRo ro);

        //修改 约考的状态 和消息推送状态
        int updateYueKaoExam(@Param("ro")UpdateYueKaoRo ro);

        List<StudentEaxmVo> queryStudentYueKao(IPage<StudentEaxmVo> pageBean, @Param("ro") SelectByStateRo ro);

        ShowUpdateExamVo showUpdateExam(@Param("studentId")long studentId);

         int  saveUpdateEaxmData(@Param("ro")StudentExam ro);
}
